package com.yixing.tech.common.base;

/**
 * @author yixing tech
 */
@Deprecated
public class BaseResponse<T> extends Rs<T> {
    /**
     * 返回状态码
     */
    Integer code = 1000;
    /**
     * 状态码描述
     */
    String desc = "";
    /**
     * 数据段
     */
    T data;

    boolean ok;

    public BaseResponse(T data) {
        this.data = data;
    }

    public BaseResponse() {

    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public boolean isOk(){
       return this.code == 1000;
    }

}
